
pkgname=libssh2
pkgver=1.8.0
pkgrel=1
pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts"
url="https://www.libssh2.org/"
arch=('x86_64')
license=('BSD')
depends=('openssl')
makedepends=('zlib')
options=('!libtool')
source=("https://www.libssh2.org/download/$pkgname-$pkgver.tar.gz")
md5sums=('3d1147cae66e2959ea5441b183de1b1c')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  
  ./configure --prefix=/usr 
  make 
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install 
  
  install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE 
}
